package com.hzhr.iot.core.constant;

public class DeviceOptions {
   //region typecode = 'YES_NO' typename = '是否'
    public static enum YES_NO {
        YES("1", "是"), NO("0", "否");

        private String code;
       private String name;
        YES_NO(String code, String name) {
            this.code = code;
            this.name = name;
        }
        public String getCode() {
            return code;
        }
       public String getName() {
           return name;
       }
   }
    //endregion

    //region typecode = 'COLLET_DEVICE_CATEGORY' typename = '采集设备种类'
    public static enum COLLET_DEVICE_CATEGORY {
        NB_IOTMETER("1", "NB物联网表"), FLOWERMETER("2", "流量计"), LORA_IOTMETER("3", "LORA无线远传表"),
        BKMETER("4", "BK表"), GPRS_IOTMETER("5", "GPRS物联网表"),
        PRESSURE_MONITOR("燃气管网压力监测仪", "6"), GAS_ALRAM("燃气泄漏报警器", "7");
        private String code;
        private String name;
        COLLET_DEVICE_CATEGORY(String code, String name) {
            this.code = code;
            this.name = name;
        }
        public String getCode() {
            return code;
        }
        public String getName() {
            return name;
        }
    }
    //endregion

    //region typecode = 'IOT_DEVICE_CATEGORY' typename = '物联设备种类'
    public static enum IOT_DEVICE_CATEGORY {
        NB_IOTMETER("1", "NB物联网表"), DTU("2", "DTU"), CONCENTRATOR("3", "集中器"),
        BKMETER_COLLECTOR("4", "BK表采集器"), GPRS_IOTMETER("5", "GPRS物联网表"),
        PRESSURE_MONITOR("燃气管网压力监测仪", "6"), GAS_ALRAM("燃气泄漏报警器", "7");
        private String code;
        private String name;
        IOT_DEVICE_CATEGORY(String code, String name) {
            this.code = code;
            this.name = name;
        }
        public String getCode() {
            return code;
        }
        public String getName() {
            return name;
        }
    }
    //endregion

    //region typecode = 'VALVE_STATE' typename = '阀门状态'
    public static enum VALVE_STATE {
        OPEN("1", "开"), CLOSE("2", "关");
        private String code;
        private String name;
        VALVE_STATE(String code, String name) {
            this.code = code;
            this.name = name;
        }
        public String getCode() {
            return code;
        }
        public String getName() {
            return name;
        }
    }
    //endregion

    //region typecode = 'ALARM_TYPE' typename = '报警类型'
    public static enum ALARM_TYPE {
        FMLQ("1", "阀门漏气");
        private String code;
        private String name;
        ALARM_TYPE(String code, String name) {
            this.code = code;
            this.name = name;
        }
        public String getCode() {
            return code;
        }
        public String getName() {
            return name;
        }
    }
    //endregion
}
